
"""
if ... elif ... else ...

闰年如何判断？

"""
year = 2024

if year % 4 == 0:
    pass
elif year % 400 == 0:
    pass
else:
    pass

if year % 4 == 0 and year % 100 != 0:
    print(year, "是闰年")
elif year % 400 == 0:
    print(year, "是闰年")
else:
    print(year, "不是闰年")

